_this    = _this select 3;
_number  = _this select 0;
_art     = _this select 1;         

Donate_id1 = [
"75218374", //Kellee
"124007174", //Enzo
"107274950", //Compton
"123055494", //Michael
"86291654", //Putzin
"69436870", //Applebee
"110079622", //Copenhagen
"107232070", //Woods
"99907590", //Grimes
"47693382", //Austin
"107982278", //Sullivan
"98845894", //Garrett
"113830662", //Speirs
"96551366", //Mark
"10752192", //RealTime
"79830982", //P3
"79829446", //P4
"88623302", //Mav
"17384262", //Taryn
"3343430", //Thompson
"48016902", //Janjko
"92966982", //Coppersmith
"120936326", //Hornet
"149304454", //Nuke
"127071430", //Talamander
"127907270", //Stanley
"149141382", //thekiller
"139836742", //RJ
"146621318" //Da_Boss

];

Donate_id2 = [
"69436870", //Applebee
"92966982", //Coppersmith
"75218374", //Kellee
"124007174", //Enzo
"110079622", //Copenhagen
"107232070", //Woods
"99907590", //Grimes
"47693382", //Austin
"107982278", //Sullivan
"98845894", //Garrett
"113830662", //Speirs
"96551366", //Mark
"149304454", //Nuke
"79830982", //P3
"88623302", //Mav
"146621318", //Da_Boss
"48016902", //Janjko
"120936326", //Hornet
"127071430", //Talamander
"127907270", //Stanley
"149141382", //thekiller
"139836742", //RJ
"79829446" //P4

];

Donate_id3 = [
"99907590", //Grimes
"47693382", //Austin
"92966982", //Coppersmith
"75218374", //Kellee
"124007174", //Enzo
"107982278", //Sullivan
"98845894", //Garrett
"113830662" //Speirs

];

Governor_id1 = [
"99907590", //Grimes
"107982278", //Sullivan
"46152006" //Jack Bauer


];

if ((_art == "remove") or (_art == "add")) then 

{

if (_art == "add") then 

	{
	_uid = getPlayerUID vehicle  player;
	_license = ((INV_Lizenzen select _number) select 0);
	_name    = ((INV_Lizenzen select _number) select 2);
	_cost    = ((INV_Lizenzen select _number) select 3);
	if (_license call INV_HasLicense) exitWith {player groupChat localize "STRS_inv_buylicense_alreadytrue";};
	if (('geld' call INV_GetItemAmount) < _cost) exitWith {player groupChat localize "STRS_inv_buylicense_nomoney";};
	if(_license == "car" or _license == "truck")then{demerits = 10};
	if(_license == "Donator_licence1" and !(_uid in Donate_id1)) exitWith { player groupChat "Restriced to Basic Members"};
	if(_license == "Donator_licence2" and !(_uid in Donate_id2)) exitWith { player groupChat "Restriced to VIP Members!"};
	if(_license == "Donator_licence3" and !(_uid in Donate_id3)) exitWith { player groupChat "Restriced to Diamond Members!"};
	if(_license == "mayorlic" and !(_uid in Governor_id1)) exitWith { player groupChat "Restriced to the Governor of Florida"};
	if(_license == "probator" and !(iscop)) exitWith { player groupChat "Restriced to Miami Police Department"};
	if(_license == "patrol_training" and !(iscop)) exitWith { player groupChat "Restriced to Miami Police Department"};
	if(_license == "sobr_training" and !(iscop)) exitWith { player groupChat "Restriced to the Miami Police Department"};
	if(_license == "air_support_training" and !(iscop)) exitWith { player groupChat "Restriced to Miami Police Department"};
	if(_license == "cg_air" and !(iscop)) exitWith { player groupChat "Restriced to Miami Police Department Coast Guard"};
	if(_license == "cg_boat" and !(iscop)) exitWith { player groupChat "Restriced to Miami Police Department Coast Guard"};


	['geld', -(_cost)] call INV_AddInvItem;
	player groupChat format[localize "STRS_inv_buylicense_gottraining", (_cost call ISSE_str_IntToStr), _name];

	
	INV_LizenzOwner = INV_LizenzOwner + [_license];
	["INV_LizenzOwner", INV_LizenzOwner] spawn ClientSaveVar;
	
	} 
	else 
	{

	_license = ((INV_Lizenzen select _number) select 0);
	name    = ((INV_Lizenzen select _number) select 2);
	if (not(_license call INV_HasLicense)) exitWith {player groupChat localize "STRS_inv_buylicense_alreadyfalse";};
	INV_LizenzOwner = INV_LizenzOwner - [_license];
	player groupChat format[localize "STRS_inv_buylicense_losttraining", _name];
	["INV_LizenzOwner", INV_LizenzOwner] spawn ClientSaveVar;

	};

};